package com.lazy.app.ui.act;

import android.os.Bundle;
import android.view.LayoutInflater;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.content.res.ResourcesCompat;

import com.lazy.app.R;
import com.lazy.app.databinding.ActivitySettingsBinding;
import com.lazy.app.presenter.AboutPresenter;
import com.zndroid.base.ui.common.CommonActivity;
import com.zndroid.utils.XUtils;
import com.zndroid.widget.title.TitleBar;

/**
 * 关于页面
 *
 * @author lzy
 */
public class SettingsActivity extends CommonActivity<ActivitySettingsBinding, AboutPresenter> {
    @Override
    protected int onSupplyStatusBarColor() {
        return ResourcesCompat.getColor(getResources(), R.color.color_grey_light, getTheme());
    }

    @Override
    protected ActivitySettingsBinding onSupplyViewBinding(@NonNull LayoutInflater layoutInflater) {
        return ActivitySettingsBinding.inflate(layoutInflater);
    }

    @Override
    protected TitleBar onSupplyTitleBar() {
        return currentViewBinding().tbTitle;
    }

    @Override
    protected void doOnCreate(@Nullable Bundle savedInstanceState) {
        super.doOnCreate(savedInstanceState);

        XUtils.create().screenUtil().setStatusBarDarkMode(this);
    }

}
